.class Limoblife/yogamoment/lite/MainActivity$12;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/yogamoment/lite/MainActivity;->showTimeWindows()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Limoblife/yogamoment/lite/MainActivity;

.field private final synthetic val$mainTimerText:Landroid/widget/TextView;

.field private final synthetic val$setTimeButton:Landroid/widget/Button;

.field private final synthetic val$time:Landroid/widget/TimePicker;

.field private final synthetic val$timeLayout:Landroid/widget/LinearLayout;

.field private final synthetic val$timetextTextView:Landroid/widget/TextView;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/MainActivity;Landroid/widget/Button;Landroid/widget/TextView;Landroid/widget/LinearLayout;Landroid/widget/TimePicker;Landroid/widget/TextView;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iput-object p2, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$setTimeButton:Landroid/widget/Button;

    iput-object p3, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    iput-object p4, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timeLayout:Landroid/widget/LinearLayout;

    iput-object p5, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$time:Landroid/widget/TimePicker;

    iput-object p6, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$mainTimerText:Landroid/widget/TextView;

    .line 473
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Limoblife/yogamoment/lite/MainActivity$12;)Limoblife/yogamoment/lite/MainActivity;
    .locals 1
    .parameter

    .prologue
    .line 473
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .parameter "v"

    .prologue
    const/4 v3, 0x4

    const/4 v2, 0x0

    .line 477
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-boolean v0, v0, Limoblife/yogamoment/lite/MainActivity;->isSetTime:Z

    if-eqz v0, :cond_1

    .line 479
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iput-boolean v2, v0, Limoblife/yogamoment/lite/MainActivity;->isSetTime:Z

    .line 480
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$setTimeButton:Landroid/widget/Button;

    .line 481
    const v1, 0x7f020058

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 482
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 483
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timeLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 484
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$time:Landroid/widget/TimePicker;

    invoke-virtual {v0}, Landroid/widget/TimePicker;->getCurrentHour()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v6

    .line 485
    .local v6, hour:I
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$time:Landroid/widget/TimePicker;

    invoke-virtual {v0}, Landroid/widget/TimePicker;->getCurrentMinute()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 486
    .local v7, minu:I
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    mul-int/lit8 v1, v6, 0x3c

    mul-int/lit8 v1, v1, 0x3c

    mul-int/lit16 v1, v1, 0x3e8

    mul-int/lit8 v2, v7, 0x3c

    mul-int/lit16 v2, v2, 0x3e8

    add-int/2addr v1, v2

    int-to-long v1, v1

    iput-wide v1, v0, Limoblife/yogamoment/lite/MainActivity;->appRunningTime:J

    .line 487
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$mainTimerText:Landroid/widget/TextView;

    iget-object v1, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-wide v2, v2, Limoblife/yogamoment/lite/MainActivity;->appRunningTime:J

    #calls: Limoblife/yogamoment/lite/MainActivity;->getTime(J)Ljava/lang/String;
    invoke-static {v1, v2, v3}, Limoblife/yogamoment/lite/MainActivity;->access$4(Limoblife/yogamoment/lite/MainActivity;J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 488
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    iget-object v1, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-wide v2, v2, Limoblife/yogamoment/lite/MainActivity;->appRunningTime:J

    #calls: Limoblife/yogamoment/lite/MainActivity;->getTime(J)Ljava/lang/String;
    invoke-static {v1, v2, v3}, Limoblife/yogamoment/lite/MainActivity;->access$4(Limoblife/yogamoment/lite/MainActivity;J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 489
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V

    .line 490
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    new-instance v1, Limoblife/yogamoment/lite/MainActivity$12$1;

    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$mainTimerText:Landroid/widget/TextView;

    invoke-direct {v1, p0, v2, v3}, Limoblife/yogamoment/lite/MainActivity$12$1;-><init>(Limoblife/yogamoment/lite/MainActivity$12;Landroid/widget/TextView;Landroid/widget/TextView;)V

    iput-object v1, v0, Limoblife/yogamoment/lite/MainActivity;->handler:Landroid/os/Handler;

    .line 503
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v0, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    if-eqz v0, :cond_0

    .line 504
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v0, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    .line 507
    :cond_0
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    new-instance v1, Ljava/util/Timer;

    invoke-direct {v1}, Ljava/util/Timer;-><init>()V

    iput-object v1, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    .line 508
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v0, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    new-instance v1, Limoblife/yogamoment/lite/MainActivity$12$2;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/MainActivity$12$2;-><init>(Limoblife/yogamoment/lite/MainActivity$12;)V

    .line 531
    const-wide/16 v2, 0xa

    const-wide/16 v4, 0x3e8

    .line 508
    invoke-virtual/range {v0 .. v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;JJ)V

    .line 532
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$setTimeButton:Landroid/widget/Button;

    const v1, 0x7f05000f

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 547
    .end local v6           #hour:I
    .end local v7           #minu:I
    :goto_0
    return-void

    .line 535
    :cond_1
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$setTimeButton:Landroid/widget/Button;

    .line 536
    const v1, 0x7f020057

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 537
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timetextTextView:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 538
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$timeLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 539
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$setTimeButton:Landroid/widget/Button;

    const v1, 0x7f050010

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 540
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v0, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    .line 541
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    const/4 v1, 0x0

    iput-object v1, v0, Limoblife/yogamoment/lite/MainActivity;->timer:Ljava/util/Timer;

    .line 542
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    const-wide/32 v1, 0x493e0

    iput-wide v1, v0, Limoblife/yogamoment/lite/MainActivity;->appRunningTime:J

    .line 543
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->this$0:Limoblife/yogamoment/lite/MainActivity;

    const/4 v1, 0x1

    iput-boolean v1, v0, Limoblife/yogamoment/lite/MainActivity;->isSetTime:Z

    .line 544
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$12;->val$mainTimerText:Landroid/widget/TextView;

    const v1, 0x7f050023

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0
.end method
